package org.example.netty.test.nio.netty.chat.handler;

import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;
import lombok.extern.slf4j.Slf4j;
import org.example.netty.test.nio.netty.chat.bean.PingMessage;

/**
 * @author zp
 * @version 1.0
 * @description: 心跳包监测消息
 * @date 2023/5/24 19:07
 */
@Slf4j
public class PingMessageHandler extends SimpleChannelInboundHandler<PingMessage> {
    @Override
    protected void channelRead0(ChannelHandlerContext ctx, PingMessage msg) throws Exception {
        // 可以不做处理
        // log.info("客户端发送的心跳包");
    }
}
